<?
session_start();
$tmppath="../../";
REQUIRE ($tmppath."/include/login.php");
REQUIRE ($tmppath."/templates/$_TEMPLATE/up.php");

//REQUIRE("ville_function.php");
REQUIRE("../fonction.php");
REQUIRE($tmppath."protect/connect_jeu.php");
echo "<SCRIPT TYPE=\"text/javascript\" SRC=\"../../common_script.js\"></SCRIPT> ";


           /*      echo $p; */
//ECHO "$_SESSION_VAR_SWITCH - $p - $_SESSION_VAR_PAGE;";




//Switch des pages.
//-----------------
SWITCH ($p){

       //Pour les recherches------------------------------------------------------RECHERCHE
       CASE "general": REQUIRE("include/general.php");  EXIT; BREAK;
       CASE "lancer_recherche": REQUIRE("include/lancer_recherche.php");  EXIT; BREAK;
       CASE "recherche": REQUIRE("include/view_recherche.php");  EXIT; BREAK;
       
        //Pour les SORT------------------------------------------------------SORT
       CASE "magie_general": REQUIRE("sort/general.php");  EXIT; BREAK;
        CASE "ajout_sort": REQUIRE("sort/ajout_sort.php");  EXIT; BREAK;
       CASE "magie_lancer_recherche": REQUIRE("sort/lancer_recherche.php");  EXIT; BREAK;
       CASE "magie_lancer_sort": REQUIRE("sort/lancer_sort.php");  EXIT; BREAK;
       CASE "magie_visionnement": REQUIRE("sort/view_recherche.php");  EXIT; BREAK;

}//fin du switch PAGE ($p){



mysql_close();
?>
